<? include ("../init.php") ?>
<?
  $uid = $_POST['uid'];
  $username = $_POST['username'];
  $password = $_POST['password'];
  $name = $_POST['name'];
  $surname = $_POST['surname'];
  $displayname = $_POST['displayname'];
  $gender = $_POST['gender'];
  $birthday = $_POST['birthday'];
  $jobtype = $_POST['jobtype'];
  $address = $_POST['address'];
  $province = $_POST['province'];
  $country = $_POST['country'];
  $zipcode = $_POST['zipcode'];
  $groupuser = $_POST['groupuser'];

  $sql = "UPDATE event SET username = '$username', password = '$password', name = '$name', surname = '$surname',
          gender = '$gender', birthday = '$birthday', jobtype = '$jobtype', address = '$address', province = '$province',
          country = '$country', zipcode = '$zipcode', groupuser = '$groupuser' WHERE uid = $uid";

  $db->execute($sql);

  header("Location:index.php");
?>